Determine the options (both main and sub menu):
awk 'BEGIN {submenu=0;menu=0};$1 ~ /submenu/ {submenu+=1;menu=0;sub(/\$.*$/,"");print submenu" " $0};/menuentry / && /Linux/ {gsub(/menuentry/,"");gsub(/--class.*$/,"");gsub(/\047/,"");print " "submenu">"menu " " $0;menu+=1}' /boot/grub/grub.cfg
Change the default to the desired option:
nano /etc/default/grub
Where X>X is the menu item (0 is the top)
This must be in quotes!
Save your new configuration:
update-grub
Thank you, your article surprised me, there is such an excellent point of view. Thank you for sharing, I learned a lot.
Awesome! Its genuinely remarkable post, I have got much clear idea regarding from this post
Good post! We will be linking to this particularly great post on our site. Keep up the great writing
You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
Awesome! Its genuinely remarkable post, I have got much clear idea regarding from this post
There is definately a lot to find out about this subject. I like all the points you made